package net.soevar.ui.util;

import org.zkoss.zul.Script;

public class CheckForParentScript extends Script {

	private static final long serialVersionUID = 1767317011928055759L;

	public CheckForParentScript() {
		super();
		setContent("var isInIFrame = (window.location != window.parent.location && window.name != 'main') ? true : false;if(isInIFrame){parent.location.reload();}");
	}

}
